package com.example.operation.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class DispatchDto {


    @ApiModelProperty(value = "id")
    @NotNull(message = "id不为空")
    private Integer id;
    //模板名称
    @ApiModelProperty(value = "模板名称")
    @NotBlank(message = "模板名称不为空")
    private String name;
    //结算方式
    @ApiModelProperty(value = "结算方式")
    @NotNull(message = "结算方式不为空")
    private Integer settlementMethod;
    //是否包邮
    @ApiModelProperty(value = "是否包邮")
    @NotNull(message = "是否包邮不为空")
    private Integer freeShipp;
    //计价方式
    @ApiModelProperty(value = "计价方式")
    @NotNull(message = "计价方式不为空")
    private Integer pricingMethod;

    @ApiModelProperty(value = "同城配送")
    private DispatchCityDto dispatchCityDto;

    @ApiModelProperty(value = " 快递物流")
    private DispatchExpressDto dispatchExpressDto;

    @ApiModelProperty(value = "指定条件包邮")
    private DispatchConditionDto dispatchConditionDto;



}
